﻿<!DOCTYPE html>
<html>
<head>
  <% include ./user_component/head.ejs%>
  <meta name='viewport' content='width=device-width; initial-scale=1; maximum-scale=1; minimum-scale=1; user-scalable=no;'>
</head>
<body>
<h3>教师的评价</h3>


<div class="layui-col-md12">
  <% for (let i=0; i<data_h.length; i++){%>
    <div class="layui-card">
      <div class="layui-card-header"><%= i+1%>.<%=data_h[i].title%></div>
      <div class="layui-card-body">
        <%=data_h2[0].answer[i]%>
      </div>
    </div>
    <%}%>

</div>


<div style="text-align:center;">
</div>
<script>
  const url = encodeURI('http://127.0.0.1:3001/QselectTeacher')
  const userId = getQueryVariable('userId')

  function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}
</script>
<style>
  h3{
    text-align: center;
    padding: 30px 0;
  }
</style>
</body>
